<template>
	<view class="fabu">
		<u-navbar bgColor="#fff" :placeholder="true" :fixed="true" @leftClick="$back" title="我的派单" titleStyle="{'color': '#000'}">
			
		</u-navbar>
		<view class="mode-bom">
			
			<view class="im-fri" @click="$goto('/task/list/order_push?type=0')">
				<image class="img_a" :src="'/images/ss2.png' | formatImgUrl" mode=""></image>
				<view class="tex">
					<view class="weig">按字数报价</view>
					<view class="min">我们将帮您计算订单的总价</view>
				</view>
				<image class="img_b" :src="'/images/ss3.png'  | formatImgUrl" mode=""></image>
			</view>
			
			<view class="con">
			</view>
			
			<view class="im-fri back" @click="$goto('/task/list/order_push?type=1')">
				<image class="img_a" :src="'/images/ss1.png' | formatImgUrl" mode=""></image>
				<view class="tex">
					<view  class="weig"> 按订单报价</view>
					<view class="min">您直接给出订单的总价</view>
				</view>
				<image class="img_b" :src="'/images/ss3.png'  | formatImgUrl" mode=""></image>
			</view>
			
			
			<view class="im-thr">
				<image class="las-mg " @click="go_back()" :src="'/images/fb_3.png' | formatImgUrl"  mode=""></image>
			</view>
		
		</view>
	</view>
</template>
<script>
	import * as db from '@/common/db.js'
	export default {
		data() {
			return {
				// 是否关注
				isguan: true,
				// 点击切换
				navList: [{
					id: 1,
					name: '约文'
				}, {
					id: 2,
					name: '评价'
				}, {
					id: 3,
					name: '动态'
				}],
				navIndex: 1,
				// 沟通弹框
				show: false,
				uid: this.$db.get('userInfo').membe_id,
				userInfo: {},
				list: {},
				page: 1,
				rowList: [],
				showdel:false,
				aid:0
			}
		},
		onShow() {
			// this.getUserInfo()
		},
		onLoad(option) {
			console.log(option.id)
			if (option.id) {
				this.uid = option.id
			}
			// this.getUserInfo()
		},

		// 上拉加载
		onReachBottom() {
			if (this.list.current_page < this.list.last_page) {
				this.page++; // 页数加一，加载下一页数据
				this.getList();
			}
		},
		methods: {
			$goto(url){
				let auth = db.get('auth');
				if (!auth) {
					uni.navigateTo({
						url: '/pages/login/login'
					})
					return;
				}
				
				this.$go(url)
			},
			go_back() {
				uni.navigateBack({//返回上一个页面
					delta: 1
				});
				// let path = uni.getStorageSync("end_path");
				
				// 	uni.redirectTo({
				// 		url: path
				// 	})
			}
		}
	}
</script>



<style lang="scss">
	.mode-bom{
		position: fixed;
		bottom:60rpx;
		width: 100%;
		text-align: center;
		.im-fri{
			width: 315px;
			height: 55px;
			border-radius: 8px;
			opacity: 1;
			background: rgba(182, 255, 243, 0.5);
			margin: 0 auto;
			.img_a{
				float: left;
				width: 36px;
				height: 36px;
				margin-left: 15px;
				margin-top: 10px;
			}
			.tex{
				text-align: left;
				margin-top: 7px;
				margin-left: 30rpx;
				float: left;
				color: #3d3d3d;
				font-size: 16px;
				font-weight: 600;
				.weig{
					font-weight: 700;
				}
				.min{
					font-size: 12px;
					font-weight: 500;
				}
			}
			.img_b{
				float: right;
				width: 20px;
				height: 20px;
				margin-top: 15px;
				margin-right: 20px;
			}
		}
		.back{
			background: rgba(233, 255, 212, 0.5);
		}
		.con{
			width: 100%;
			height: 30rpx;
		}
		.im-tow{
			width: 315px;
			height: 55px;
			border-radius: 8px;
			opacity: 1;
			background: rgba(233, 255, 212, 0.5);
			margin: 0 auto;
		}
		
		.las-mg{
			margin: 0 auto;
			width: 35px;
			height: 35px;
			margin-top:80rpx;
			border-radius: 5em;
		}
		
	}
</style>